/*
 * Copyright 2010, 2011 Matt Oliveri
 *
 * This file is part of JConfigGen
 *
 * JConfigGen is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * JConfigGen is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with JConfigGen.  If not, see <http://www.gnu.org/licenses/>.
 */

package atma.jconfiggen;

/** An exception thrown by the AST when it detects an error.
 * Includes a line number and a message.
 */
public class InvalidConfigException extends Exception
{
	private static final long serialVersionUID = 1;

	/** The line number the expression with the error was on.
	 */
	public final int line;

	/** Construct a {@code InvalidConfigException}.
	 * @param ln Line number we are complaining about. Sets {@link #line}.
	 * @param msg {@link Throwable} detail message. Access with {@link #getMessage()}.
	 */
	public InvalidConfigException(int ln,String msg) {super(msg);line = ln;}
}
